Xbasic

FTP_FILE_XFER Function

Syntax

C ftp_file_xfer(C address, C user, C password, C source_file, C destination_file, C GetPut [, L background [, C title]])

Arguments

addressCharacter

The FTP address of the transmission.

userCharacter

The user's identity.

passwordCharacter

The user's password.

source_fileCharacter

The file to send.

destination_fileCharacter

The file to save remotely.

GetPutCharacter

Specifies the operating mode. Can be one of the following:

Mode
Description
get

The specified file is downloaded from the server to the local system.

put

The specified file is uploaded to the server from the local system.

backgroundLogical

Default = .T. If .T., the displayed dialog is modeless. If .F., the dialog is modal, and the script pauses until the FTP transfer is complete.

titleCharacter

Default = "FTP Transfer". The title of the dialog box.

Description

Transfers a file using FTP. The FTP_FILE_XFER() function is a lower-level function that is wrapped by FTP_GET_FILE()and FTP_PUT_FILE().

See Also